package com.bw.merchant.net

import androidx.lifecycle.MutableLiveData
import com.bw.common.vm.BaseViewModel
import com.bw.http.utils.zgr.OkHttpClientManager
import com.bw.merchant.entity.MerchantEntity
import com.bw.merchant.entity.ProfileEntity

class MerchantViewModel : BaseViewModel() {


    val profilesSuccess by lazy { MutableLiveData<List<ProfileEntity>>() }
    private val apiService = OkHttpClientManager.retrofitInstance.create(ApiService::class.java)

    fun getProfiles() {
        executeNetwork(
            { apiService.getProfiles() },
            profilesSuccess::postValue
        )
    }




}